<template>
  <div class="app-container" style="text-align: center">
    <el-row v-if="role==='teacher'" style="margin-bottom: 20px">
      <el-col :span="3" style="text-align: left">
        <el-button type="primary" @click="check">
          开始核验
        </el-button>
      </el-col>
      <el-col :span="12" style="text-align: left">
        <el-input maxlength="64" v-model="checkInput" placeholder="请输入奖项编号">

        </el-input>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  import {CLASSID_KEY, ROLE_KEY} from "../../constants";
  import {addOneNotice, getNoticeListByClassid} from "../../api";
  import {formatTime} from "../../utils/timeFormat";
  import {applicationQuery} from "../../api/student";
  import {teacherQueryPaper} from "../../api/admin";

  export default {
    name: 'ApplyList',
    data() {
      return {
        checkInput: '',
        role: localStorage.getItem(ROLE_KEY)
      }
    },
    methods: {
      formatTime: formatTime,
      check() {
        teacherQueryPaper(this.checkInput).then(res => {
          console.log(res)
        })
      }
    },
    mounted() {

    }
  }
</script>
